<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src="jquery-1.7.2.min.js"></script>
	<script src="laydate/WdatePicker.js"></script>
	<style>
		body{width: 1200px;margin:0 auto;font-family: "Simsun",Tahoma,Arial,sans-serif;font-size: 14px;color:#000;}
		.dec{font-size: 14px;}
		.mydetail{width: 1200px;padding-bottom:10px }
		table {background-color: transparent;border-collapse: collapse;border-spacing: 0;width: 1200px;}
		.mydetail th, .mydetail td {border: 1px solid #e2e2e2;}
		.mydetail td,.mydetail th {text-align: center;padding: 10px 5px;}
		.tal{text-align: left;}
		.tac{text-align: center;}
		.search-con{height: 50px;line-height: 50px;background:#f3f3f3;padding: 5px 30px;margin-bottom: 10px}
		.search-con input,.search-con select{margin-right: 10px;}
		.search-con span{color: red;font-weight: bold;}
		.title_2{font-size: 14px}
		.titleA{background: #eee;font-weight: bold;}
		.w200{width: 200px;}
		.w100{width: 100px;}
		.w80{width: 80px;}
		.w60{width: 60px;}
		.w50{width: 50px;}
		.w30{width: 30px;}
		.w10{width: 10px;}
		.laydate-icon{width: 100px;}
	.STYLE2 {font-size: medium}
    a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
	<table width="1200" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="100"><a href="http://www.ego-buy.com.cn/"><img src="image/bg11.jpg" alt="0" width="1200" height="76" border="0"></a></td>
      </tr>
      <tr>
        <td height="50"><img src="image/bg15.jpg" alt="0" width="1200" height="87"></td>
      </tr>
      <tr>
        <td height="50"><a href="index.php" class="STYLE2" style="margin-left:10px;">返回列表</a></td>
      </tr>
    </table>
		<div class="search-con">
		<form action="table5.php" method="POST">
			<input type="hidden" name="id" value="<?php echo $id; ?>" >
			<span>*</span>
			
			型号：<select name="stype" id="">
				<option value="">请选择</option>
			<?php foreach ($needall as $k => $v) {?>
				<?php if($v['type'] = $v['type']){ ?>
					
				<?php } ?>
				<option value="<?php echo $v['type'] ?>"><?php echo $v['type'] ?></option>
			<?php } ?>
			</select>
			项目：<select name="project" id="">
				<option value="">请选择</option>
			<?php foreach ($result as $k => $v) {?>
				<option value="<?php echo $v['project'] ?>"><?php echo $v['project'] ?></option>
			<?php } ?>
			</select>
			报价日期：<input type="text"  name="start" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'});" />至
			<input type="text"  name="end" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'});" />
			<input type="submit" value="查询">
		</form>
	</div>
<div class="mydetail">
		<table>
			<tbody>
				<tr>
				    <td class="titleA" width="5%">序号</td>
				    <td class="titleA" width="6%">项目</td>
				    <td class="titleA" width="6%">竞价类型</td>
				    <td class="titleA" width="10%">编码</td>
				    <td class="titleA" width="">规格型号</td>
				    <td class="titleA" width="">数量</td>
				    <td class="titleA" width="">计量单位</td>
				    <td class="titleA" width="">未税单价</td>
				    <td class="titleA" width="">税率（%）</td>
				    <td class="titleA" width="">币种</td>
				    <td class="titleA" width="">交期（天）</td>
				    <td class="titleA" width="">MOQ</td>
				    <td class="titleA" width="">MPQ</td>
				    <td class="titleA" width="80">报价时间</td>
				    <th class="titleA">物料组</th>
					<th class="titleA">采购组</th>
					<th class="titleA">工厂组</th>
					<th class="titleA">配额</th>
				</tr>
				<?php if(!empty($infoall)){ ?>
					<?php 
					foreach ($infoall as $k=> $v) {
					 ?>
					<tr>
						<td><?php echo $k+1; ?></td>
					    <td><?php echo $v['project'] ?></td>
					    <td><?php if($v['status'] == 0){ echo '非竞价';}else if($v['status'] == 1){echo '竞价';} ?></td>
					    <td><?php echo $v['type'] ?></td>
					    <td><?php echo $v['size'] ?></td>
					    <td><?php echo $v['number'] ?></td>
					    <td><?php echo $v['units'] ?></td>
					    <td><?php echo $v['price'] ?></td>
					    <td><?php echo $v['rate'] ?></td>
					    <td><?php echo $v['currency'] ?></td>
					    <td><?php echo $v['delivery']?></td>
					    <td><?php echo $v['MOQ'] ?></td>
					    <td><?php echo $v['MPQ'] ?></td>
					    <td><?php echo date('Y-m-d H:i:s',$v['createtime']) ?></td>
					    <td><?php echo $v['material']; ?></td>
						<td><?php echo $v['purchase']; ?></td>
						<td><?php echo $v['plant']; ?></td>
						<td><?php echo $v['extranum']; ?></td>
					</tr>
					<?php } ?>
				<?php } ?>
			</tbody>
		</table>		
	</div>
	<form action="" method="post">
	<div style="text-align: right;margin-top: 50px">
		<button type="submit" id="export" name="export" value="1">导出excel</button>
	</div>
	</form>
	        <table width="1200" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="100" align="center" valign="bottom"><p><span class="STYLE8 STYLE3"><a rel="nofollow" target="_blank" href="http://www.ego-buy.com.cn/faqListDetail.do?parent_id=108&id=112">集团简介 | </a><a rel="nofollow" target="_blank" href="http://www.ego-buy.com.cn/faqListDetail.do?parent_id=108&id=143">广告服务</a> | <a rel="nofollow" target="_blank" href="http://www.ego-buy.com.cn/faqListDetail.do?parent_id=108&id=115">版权信息 |</a> <a rel="nofollow" target="_blank" href="http://www.ego-buy.com.cn/faqListDetail.do?parent_id=108&id=113">商家入驻 </a> | <a rel="nofollow" target="_blank" href="http://www.ego-buy.com.cn/faqListDetail.do?parent_id=108&id=114">新闻动态</a></span></p></td>
          </tr>
          <tr>
            <td height="30" align="center"><span class="STYLE3">Copyright © 2014-2015 ego-buy.com.cn All Rights Reserved 粤ICP备15026826号</span></td>
          </tr>
        </table>
</body>
</html>
